/* USER CODE BEGIN Header */
/**
  ******************************************************************************
  * @file           : main.h
  * @brief          : Header for main.c file.
  *                   This file contains the common defines of the application.
  ******************************************************************************
  * @attention
  *
  * Copyright (c) 2025 STMicroelectronics.
  * All rights reserved.
  *
  * This software is licensed under terms that can be found in the LICENSE file
  * in the root directory of this software component.
  * If no LICENSE file comes with this software, it is provided AS-IS.
  *
  ******************************************************************************
  */
/* USER CODE END Header */

/* Define to prevent recursive inclusion -------------------------------------*/
#ifndef __MAIN_H
#define __MAIN_H

#ifdef __cplusplus
extern "C" {
#endif

/* Includes ------------------------------------------------------------------*/
#include "stm32f4xx_hal.h"

/* Private includes ----------------------------------------------------------*/
/* USER CODE BEGIN Includes */

/* USER CODE END Includes */

/* Exported types ------------------------------------------------------------*/
/* USER CODE BEGIN ET */

/* USER CODE END ET */

/* Exported constants --------------------------------------------------------*/
/* USER CODE BEGIN EC */

/* USER CODE END EC */

/* Exported macro ------------------------------------------------------------*/
/* USER CODE BEGIN EM */

/* USER CODE END EM */

/* Exported functions prototypes ---------------------------------------------*/
void Error_Handler(void);

/* USER CODE BEGIN EFP */

/* USER CODE END EFP */

/* Private defines -----------------------------------------------------------*/
#define encoder_L_A_Pin GPIO_PIN_0
#define encoder_L_A_GPIO_Port GPIOA
#define encoder_L_B_Pin GPIO_PIN_1
#define encoder_L_B_GPIO_Port GPIOA
#define sensor_Pin GPIO_PIN_2
#define sensor_GPIO_Port GPIOA
#define sensorA3_Pin GPIO_PIN_3
#define sensorA3_GPIO_Port GPIOA
#define SPI1_NSS_Pin GPIO_PIN_4
#define SPI1_NSS_GPIO_Port GPIOA
#define LED_Pin GPIO_PIN_2
#define LED_GPIO_Port GPIOB
#define PWM_A_Pin GPIO_PIN_9
#define PWM_A_GPIO_Port GPIOE
#define PWM_B_Pin GPIO_PIN_11
#define PWM_B_GPIO_Port GPIOE
#define motor_A_Pin GPIO_PIN_12
#define motor_A_GPIO_Port GPIOE
#define motor_AE13_Pin GPIO_PIN_13
#define motor_AE13_GPIO_Port GPIOE
#define motor_B_Pin GPIO_PIN_14
#define motor_B_GPIO_Port GPIOE
#define motor_BE15_Pin GPIO_PIN_15
#define motor_BE15_GPIO_Port GPIOE
#define LED_1_Pin GPIO_PIN_12
#define LED_1_GPIO_Port GPIOB
#define LED_2_Pin GPIO_PIN_13
#define LED_2_GPIO_Port GPIOB
#define LED_3_Pin GPIO_PIN_14
#define LED_3_GPIO_Port GPIOB
#define LED_4_Pin GPIO_PIN_15
#define LED_4_GPIO_Port GPIOB
#define Key_1_Pin GPIO_PIN_8
#define Key_1_GPIO_Port GPIOD
#define Key_2_Pin GPIO_PIN_9
#define Key_2_GPIO_Port GPIOD
#define Key_3_Pin GPIO_PIN_10
#define Key_3_GPIO_Port GPIOD
#define Key_4_Pin GPIO_PIN_11
#define Key_4_GPIO_Port GPIOD
#define encoder_R_A_Pin GPIO_PIN_12
#define encoder_R_A_GPIO_Port GPIOD
#define encoder_R_B_Pin GPIO_PIN_13
#define encoder_R_B_GPIO_Port GPIOD
#define sensor_left_Pin GPIO_PIN_14
#define sensor_left_GPIO_Port GPIOD
#define sensor_L_2_Pin GPIO_PIN_15
#define sensor_L_2_GPIO_Port GPIOD
#define OpenMv_USART6_TX_Pin GPIO_PIN_6
#define OpenMv_USART6_TX_GPIO_Port GPIOC
#define OpenMv_USART6_RX_Pin GPIO_PIN_7
#define OpenMv_USART6_RX_GPIO_Port GPIOC
#define Buzzer_Pin GPIO_PIN_9
#define Buzzer_GPIO_Port GPIOC
#define sensor_right_Pin GPIO_PIN_8
#define sensor_right_GPIO_Port GPIOA
#define sensor_rightD0_Pin GPIO_PIN_0
#define sensor_rightD0_GPIO_Port GPIOD
#define sensor_rightD1_Pin GPIO_PIN_1
#define sensor_rightD1_GPIO_Port GPIOD
#define OLED_I2C1_SCL_Pin GPIO_PIN_6
#define OLED_I2C1_SCL_GPIO_Port GPIOB
#define OLED_I2C1_SDA_Pin GPIO_PIN_7
#define OLED_I2C1_SDA_GPIO_Port GPIOB

/* USER CODE BEGIN Private defines */

/* USER CODE END Private defines */

#ifdef __cplusplus
}
#endif

#endif /* __MAIN_H */
